package com.dnzx.client.impl;

import java.util.List;

import org.dnzx.framework.page.PageResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dnzx.client.ISmsClient;
import com.dnzx.model.SmsBO;
import com.dnzx.service.ISmsService;


/**
 * @version 1.0
 */
@Service
public class SmsClientImpl implements ISmsClient {

	private static Logger logger = LoggerFactory.getLogger(SmsClientImpl.class);
	
	@Autowired
	private ISmsService smsService;

	@Override
    public void save(SmsBO smsBO) {
        this.smsService.save(smsBO);
    }
    
    @Override
    public void delete(Long id) {
        this.smsService.delete(id);
    }

    @Override
    public void update(SmsBO smsBO) {
        this.smsService.update(smsBO);
    }
    
    @Override
    public SmsBO get(Long id) {
        return this.smsService.get(id);
    }

	@Override
	public List<SmsBO> queryList(SmsBO smsBO) {
		return this.smsService.queryList(smsBO);
	}
	
	@Override
	public PageResult<List<SmsBO>> queryPage(SmsBO smsBO, PageResult<List<SmsBO>> pageResult) {
		return this.smsService.queryPage(smsBO, pageResult);
	}
	
}
